import {Component, Input, OnInit} from '@angular/core';
import {ModalController} from "@ionic/angular";

@Component({
  selector: 'app-toast',
  templateUrl: './toast.component.html',
  styleUrls: ['./toast.component.scss'],
})
export class ToastComponent implements OnInit {
  @Input() data: string;
  constructor(
      private modalCtrl : ModalController
  ) { }

  ngOnInit() {
  }
  close() {
    this.modalCtrl.dismiss();
  }

}
